Decouple host drivers and shutdown - #2702
Conversation
Don't assume that systemd clients must be shut down if the host has drivers Signed-off-by: Alessandro Vinciguerra <alessandro.vinciguerra@postfinance.ch>
ac78991 to
5aa78c1
Compare
|
Thanks for the contribution. We will review this PR. |
|
/ok-to-test 5aa78c1 |
|
Thanks for the follow-up PR @Arc676! As mentioned in NVIDIA/mig-parted#382 (comment), we'll take a look at this after the code freeze period is over. |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. WalkthroughThe ConfigMap entrypoint now preserves an externally set ChangesGPU client shutdown configuration
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to The entrypoint now preserves an explicitly configured GPU-client shutdown setting while retaining the existing host-driver fallback. No current merge-blocking risk is identified. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Description
Decouple the host shutdown flag from the host driver flag. This adds support for systems that have the NVIDIA drivers installed locally but do not run
systemd, for example Talos. The user can install the drivers via system extension but setWITH_SHUTDOWN_HOST_GPU_CLIENTS=falsevia Helm values to disable all code paths in the MIG manager that depend onsystemd.This requires a change to the chart because the entrypoint for the MIG manager is managed by the operator and the variable is set here. The user can't override the value or modify the
ConfigMap; the former approach would have no effect and the latter approach would be immediately reverted by the operator.See discussions in NVIDIA/mig-parted#382 and the parent issue NVIDIA/mig-parted#356.
Checklist
No secrets, sensitive information, or unrelated changes
Lint checks passing (
make lint)Generated assets in-sync (
make validate-generated-assets)Go mod artifacts in-sync (
make validate-modules)Test cases are added for new code paths
Testing
Tested manually on a Kubernetes cluster running the aforementioned patch.
Summary by CodeRabbit